
package com.tenentia.pcmps.swm.web.jsf.beans;

import java.util.TimeZone;

import org.apache.log4j.Logger;

import com.tenentia.pcmps.swm.Constants;

/**
 * 
 * @author tEnEntia, S.L.N.E.
 * 
 */
public class ApplicationConfiguration {

	private static final Logger LOGGER = Logger.getLogger(ApplicationConfiguration.class.getPackage().getName());
	
	// TODO Cambiar a 'false' en entornos que no sean de desarrollo.

	private Boolean debugEnabled = Boolean.TRUE;

	private TimeZone serverTimeZone = TimeZone.getDefault();

	public ApplicationConfiguration() {

		super();

		LOGGER.debug(Constants.STRING_L4J_METHOD_BEGIN);
	}

	/**
	 * @return the debugEnabled
	 */
	public Boolean getDebugEnabled() {

		return debugEnabled;
	}

	/**
	 * @return the serverTimeZone
	 */
	public TimeZone getServerTimeZone() {

		return serverTimeZone;
	}

	/**
	 * @param debugEnabled
	 *            the debugEnabled to set
	 */
	public void setDebugEnabled(Boolean debugEnabled) {

		this.debugEnabled = debugEnabled;
	}

	/**
	 * @param serverTimeZone
	 *            the serverTimeZone to set
	 */
	public void setServerTimeZone(TimeZone serverTimeZone) {

		this.serverTimeZone = serverTimeZone;
	}

}
